package com.kmxd.ams.client.event.log;

import com.kmxd.ams.client.event.AmsEvent;
import com.kmxd.ams.core.common.enums.ArchOpEnum;
import com.kmxd.ams.infra.arrange.entity.Document;
import java.util.List;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;

/**
 * 文档日志
 *
 * @author nickbi
 */
@EqualsAndHashCode(callSuper = true)
@Getter
@ToString(callSuper = true)
public class DocumentLogEvent extends AmsEvent {
  private final Document req;
  private final List<Document> docs;
  private final ArchOpEnum op;
  private final String content;

  public DocumentLogEvent(Document req, ArchOpEnum op, String content) {
    this.req = req;
    this.docs = null;
    this.op = op;
    this.content = content;
  }

  public DocumentLogEvent(List<Document> docs, ArchOpEnum op, String content) {
    this.req = null;
    this.docs = docs;
    this.op = op;
    this.content = content;
  }
}
